package com.letukeji.web.riverdelictmanagement.bean;

import java.io.Serializable;

public class SearchObj implements Serializable {
    private String where;
    private String order;
    private int offset;
    private int pageSize;
    public static final int defaultPageSize = 10;

    public SearchObj(String where) {
        this.where = where;
    }

    public SearchObj(String where, String order, int offset, int pageSize) {
        this.where = where;
        this.order = order;
        this.offset = offset;
        this.pageSize = pageSize;
    }

    public String getOrder() {
        return this.order;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getWhere() {
        return where;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "SearchObj [where=" + where + ", order=" + order + "]";
    }
}
